package org.point.service.impl;

import java.io.Serializable;
import java.util.List;

import org.point.common.service.impl.BaseServiceImpl;
import org.point.common.util.DoPage;
import org.point.dao.DeliveryInfoDao;
import org.point.dao.impl.ConvertRuleDetailDaoImpl;
import org.point.dao.impl.DeliveryInfoDaoImpl;
import org.point.domain.ConvertRuleDetail;
import org.point.domain.DeliveryInfo;
import org.point.domain.Product;
import org.point.service.ConvertRuleDetailService;
import org.point.service.DeliveryInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 
 * @ClassName: ConvertRuleDetailServiceImpl  
 * @Description: TODO(这里用一句话描述这个类的作用)  
 * @author Kenny_Z' szqiuk@gmail.com
 * @date 2016年10月23日 下午4:02:01  
 *
 */
@Service("DeliveryInfoService")
public class DeliveryInfoServiceImpl extends BaseServiceImpl<DeliveryInfo, Serializable> implements DeliveryInfoService {
	
	@Autowired
	private DeliveryInfoDao dao;

	public DoPage<DeliveryInfo> searchDeyForPage(DoPage<DeliveryInfo> page) {
		// TODO Auto-generated method stub
		List<DeliveryInfo> records =null;
		try {
			records = dao.findDeyForMem(page);
			Integer totalRecords = dao.countDeyForMem(page);
			page.setList(records);
			page.setTotalRecords(totalRecords);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return page;
		
	
	}
	
}
